export const tableColumn = {
  // modelName: {
  //   label: "任务名称",
  // },
  sysCode: {
    label: "系统代号",
    columnProp: {
      align: 'center'
    }
  },
  sysName: {
    label: "系统名称",
    columnProp: {
      align: 'center'
    }
  },


  sysSubCode: {
    label: "分系统代号",
    columnProp: {
      align: 'center'
    }
  },
  sysSubName: {
    label: "分系统名称",
    columnProp: {
      align: 'center'
    }
  },
  // sysNo: {
  //   type: 'input',
  //   label: "出厂系统编号",
  //   columnProp: {
  //     align: 'center'
  //   }
  // },
  // sysSubNo: {
  //   type: 'input',
  //   label: "出厂分系统编号",
  //   columnProp: {
  //     align: 'center'
  //   }
  // },

  // deviceCode: {
  //   label: "出厂系统编号",
  //   edit: true,
  // },

  deviceColor: {
    label: "设备齐套",
    progress: true,
    value: 'deviceProp',
    columnProp: {
      align: 'center'
    }
  },
  experimentColor: {
    label: "综合实验",
    progress: true,
    value: 'experimentProp',
    columnProp: {
      align: 'center'
    }
  },
  readyColor: {
    label: "系统交付",
    progress: true,
    value: 'readyProp',
    columnProp: {
      align: 'center'
    }
  },
  completeColor: {
    label: "系统完成交付",
    progress: true,
    value: 'completeProp',
    columnProp: {
      align: 'center'
    }
  }
}

export const treeCoulmn = {
  // modelName: { label: "任务名称" },
  // sysCode: { label: "系统代号" },
  // sysName: { label: "系统名称" },
  sysSubCode: { 
    label: "分系统代号", 
    // type: 'link',
    columnProp: {
      align: 'center',
      minWidth: '100px'
    }
  },
  // sysSubName: { label: "子系统名称" },
  deviceCode: { 
    label: "单机代号",
    type: 'link',
    columnProp: {
      align: 'center',
      minWidth: '100px'
    }
  },
  deviceName: { 
    label: "单机名称",
    columnProp: {
      align: 'center',
      minWidth: '100px'
    }
  },
  // orderTestNum: { label: "订货测试数量" },
  order: {
    label: "订货数量",
    type: 'set-number',
    systemNum: 'orderNum',
    testNum: 'orderTestNum',
    width:'300px',
    readyOnly: true,
    columnProp: {
      align: 'center',
      minWidth: '160px'
    }
  },
  // arrivalTestNum: { label: "到货测试数量" },
  // arrivalNum: { label: "到货数量" },

  arrival: {
    label: "到货数量",
    type: 'set-number',
    width:'300px',
    systemNum: 'arrivalNum',
    testNum: 'arrivalTestNum',
    readyOnly: true,
    columnProp: {
      align: 'center',
      minWidth: '160px'
    }
  },

  manufacturer: { 
    label: "生产厂家", 
    type: 'input',
    columnProp: {
      align: 'center',
      minWidth: '120px'
    }
  },
  telphone: { 
    label: "联系人电话", 
    type: 'input',
    columnProp: {
      align: 'center',
      minWidth: '120px'
    }
  },
  progressColor: {
    label: "进度情况",
    progress: true,
    value: 'progressProp',
    columnProp: {
      align: 'center',
      minWidth: '120px'
    }
  },
  focus: { 
    label: "关注", 
    type: 'focus',
    columnProp: {
      align: 'center',
      minWidth: '80px'
    }
  },
}

export const systemCoulmn = {
  sysCode: { 
    label: "系统代号",
    columnProp: {
      align: 'center',
      minWidth: '90px'
    }
  },
  sysName: { 
    label: "系统名称",
    columnProp: {
      align: 'center',
      minWidth: '116px',
      showOverflowTooltip: true
    }
  },
  sysNo: {
    // type: 'input',
    label: "出厂系统编号",
    columnProp: {
      align: 'center',
      minWidth: '106px' 
    }
  },
  sysSubCode: { 
    label: "分系统代号",
    columnProp: {
      align: 'center',
      minWidth: '100px' 
    }
  },
  sysSubName: { 
    label: "分系统名称",
    columnProp: {
      align: 'center',
      minWidth: '110px',
      showOverflowTooltip: true
    }
  },

  sysSubNo: {
    // type: 'input',
    label: "出厂分系统编号",
    columnProp: {
      align: 'center',
      minWidth: '120px',
    }
  },
  //complete: { label: "完成系统综合试验" },

  complete: {
    label: '完成系统综合试验',
    type: 'issue-tracking',
    columnProp: {
      align: "center",
      'width': '168px',
      'class-name': 'pd-3-0'
    },
    valueMap: {
      value: 'completePlan',
      progress: 'complete',
      count: 'completeNum'
    }
  },

  // completePlan: { label: "完成系统综合试验计划节点" },
  // completeNum: { label: "完成系统综合试验变更次数" },
  inspect: {
    label: '军检及验收',
    type: 'issue-tracking',
    columnProp: {
      align: "center",
      'width': '168px',
      'class-name': 'pd-3-0'
    },
    valueMap: {
      value: 'inspectPlan',
      progress: 'inspect',
      count: 'inspectNum'
    }
  },
  // inspectPlan: { label: "军检及验收计划节点" },
  // inspectNum: { label: "军检及验收变更次数" },
  review: {
    label: '出厂评审',
    type: 'issue-tracking',
    columnProp: {
      align: "center",
      'width': '168px',
      'class-name': 'pd-3-0'
    },
    valueMap: {
      value: 'reviewPlan',
      progress: 'review',
      count: 'reviewNum'
    }
  },
  // reviewPlan: { label: "出厂评审计划节点" },
  // reviewNum: { label: "厂评审变更次数" },
  sysReady: {
    label: '系统交付',
    type: 'issue-tracking',
    columnProp: {
      align: "center",
      'width': '168px',
      'class-name': 'pd-3-0'
    },
    valueMap: {
      value: 'sysReadyPlan',
      progress: 'sysReady',
      count: 'sysReadyNum'
    }
  },
  readyColor: {
    label: '完成度',
    progress:true,
    value: 'readyProp',
    linkText: '',
    columnProp: {
      align: 'center',
      minWidth: '110px'
    }
  },
  focus: { 
    label: "关注", 
    type: 'focus',
    columnProp: {
      minWidth: '70px',
      align: "center"
    }
  }
}

//实验
export const experimentColumn = {

  sysCode: { 
    label: "系统代号",
    columnProp: {
      align: 'center',
      minWidth: '90px'
    }
  },
 
  sysName: { 
    label: "系统名称",
    columnProp: {
      align: 'center',
      minWidth: '116px',
      showOverflowTooltip: true
    }
  },
  sysNo: {
    // type: 'input',
    label: "出厂系统编号",
    columnProp: {
      align: 'center',
      minWidth: '106px' 
    }
  },
  sysSubCode: { 
    label: "分系统代号",
    columnProp: {
      align: 'center',
      minWidth: '100px' 
    }
  },
  // sysSubNo: { label: "分系统编号" },
  sysSubName: { 
    label: "分系统名称",
    columnProp: {
      align: 'center',
      minWidth: '110px',
      showOverflowTooltip: true
    }
  },
  // kitting: { label: "分系统齐套" },
  // kittingPlan: { label: "分系统齐套计划节点" },
  // kittingNum: { label: "分系统齐套变更次数" },

  sysSubNo: {
    // type: 'input',
    label: "出厂分系统编号",
    columnProp: {
      align: 'center',
      minWidth: '120px',
    }
  },

  kitting: {
    label: '分系统齐套',
    type: 'issue-tracking',
    columnProp: {
      align: 'center',
      'width': '168px',
      'class-name': 'pd-3-0'
    },
    valueMap: {
      value: 'kittingPlan',
      progress: 'kitting',
      count: 'kittingNum'
    }
  },




  // open: { label: "子系统展开" },
  // openPlan: { label: "子系统展开计划节点" },
  // openNum: { label: "系统展开变更次数" },


  open: {
    label: '分系统展开',
    type: 'issue-tracking',
    columnProp: {
      align: 'center',
      'width': '168px',
      'class-name': 'pd-3-0'
    },
    valueMap: {
      value: 'openPlan',
      progress: 'open',
      count: 'openNum'
    }
  },




  // continuity: { label: "子系统连续性测试" },
  // continuityPlan: { label: "子系统连续性测试计划节点" },
  // continuityNum: { label: "子系统连续性测试变更次数" },

  continuity: {
    label: '分系统连续性测试',
    type: 'issue-tracking',
    columnProp: {
      align: 'center',
      'width': '168px',
      'class-name': 'pd-3-0'
    },
    valueMap: {
      value: 'continuityPlan',
      progress: 'continuity',
      count: 'continuityNum'
    }
  },



  // facility: { label: "子系统功能测试" },
  // facilityPlan: { label: "子系统功能测试计划节点" },
  // facilityNum: { label: "子系统功能测试变更次数" },

  facility: {
    label: '分系统功能测试',
    type: 'issue-tracking',
    columnProp: {
      align: 'center',
      'width': '168px',
      'class-name': 'pd-3-0'
    },
    valueMap: {
      value: 'facilityPlan',
      progress: 'facility',
      count: 'facilityNum'
    }
  },

  // complete: { label: "完成系统综合试验" },
  // completePlan: { label: "完成系统综合试验计划节点" },
  // completeNum: { label: "完成系统综合试验变更次数" },

  expColor: {
    label: '完成度',
    progress:true,
    value: 'expProp',
    linkText: '',
    columnProp: {
      align: 'center',
      minWidth: '110px'
    }
  },
  focus: { 
    label: "关注", type: 'focus',
    columnProp: {
      align: 'center',
      minWidth: '70px',
    }
  },
}